---
title: Alibaba Tongyi
---

LangChain.js supports the Alibaba qwen family of models.

## Setup

You'll need to sign up for an Alibaba API key and set it as an environment variable named `ALIBABA_API_KEY`.

Then, you'll need to install the [`@langchain/community`](https://www.npmjs.com/package/@langchain/community) package:

import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip/>

```bash npm
npm install @langchain/community @langchain/core
```

## Usage

Here's an example:

import IntegrationAlitongyi from "/snippets/javascript-integrations/examples/models/chat/integration_alitongyi.mdx";

<IntegrationAlitongyi />

## Related

- Chat model [conceptual guide](/oss/langchain/models)
- Chat model [how-to guides](/oss/langchain/models)
